package atguigu.shipeiqimoshi;

/**
 * 兼容旧的接口，但是调用了新的接口的具体实现
 * @author ex_yejing1
 *
 */
public class AdapterTwo implements OldInter{
	
	NewInter newInter;

	public AdapterTwo(NewInter newInter) {
		super();
		this.newInter = newInter;
	}

	@Override
	public void func() {
		
		newInter.func();
	}
	
	
	

}
